An Effort to Improve Cohesion Metrics Using Inheritance
نویسندگان
چکیده
1.2.Class Cohesion: Classes are the fundamental units of object-oriented programs, and provided as the units of encapsulation promoting their modifiability and reusability. Class cohesion measure quality of classes by measuring binding of the elements defined with in the class. Inherited instance variables and inherited methods are not considered. Member methods are elements of a class and perform a common task and allow you to systematize class reasonably. Cohesiveness of a class depends upon its representation of its object as single, meaningful data abstraction. Cohesion of a class is rated as separable if its objects signify various unconnected data abstractions combined in one ne object. In this case instance variables and methods of class are partitioned into sets such that no method of one set uses instance variable or invoke method of a different set. For example if you have ten methods that act as utilities for network operations, you can very well split the class into two classes: one serving the utilities and the other, network operations. After split each separated class represent single data abstraction.
منابع مشابه
Predicting Testing Effort Using Artificial Neural Network
The importance of software quality is becoming a motivating force for the development of techniques like Artificial Neural Network (ANN), which are being used for the design of prediction models of quality attributes. The purpose of this work is to examine the application of ANN for software quality prediction using Object-Oriented (OO) metrics. Testing effort has been predicted using ANN metho...
متن کاملIdentifying Source Code Metrics to Improve Quality Predictive Models Using Genetic Algorithms
In order to develop high quality software in a timely and costeffective manner, it is essential to identify and correct faulty components. Predictive models are used to classify modules as potentially faulty and in need of further inspection. Source code metrics can be used as input features for the classifier, however, there exists a large number of measures that capture different aspects of c...
متن کاملBetter Object Oriented Paradigm Inheritance and Interface through Cohesion Metrics
Measurement is fundamental to any engineering discipline. Cohesion metrics play an important role in empirical software engineering research as well as in industrial measurement programs. The Cohesion metrics presented in this paper measure the difference between class inheritance and interface programming.. This paper presents a measurement to measure cohesion by Lack of Cohesion in Methods (L...
متن کاملApplication of Artificial Neural Networks for Assessing the Testability of Object Oriented Software
In this paper, we present the application of neural networks for predicting the software testability using the object oriented design metrics. The testability is generally measured in terms of the effort required for testing. The object oriented design metrics are used as the independent variables and two JUnit based test metrics are used as dependent variables in this study. The software metri...
متن کاملCoupling and Cohesion Measures in Object Oriented Programming
Many coupling and cohesion measures have been introduced in various surveys to identify and measure the design complexity of object oriented systems.A large numbers of metrics have been built and proposed for measuring properties of object-oriented software such as size, inheritance, cohesion and coupling.The coupling is an important aspect in the evaluation of reusability and maintainability o...
متن کامل